<template>
  <div>
       <div style="background-color: white">
        <el-row>
            <el-col :span="7" :pull="0">
                <span style="color: #606266;font-size:25px;font-weight:bold" href="#">添加业主房产（共3步：3/3）</span>
            </el-col>
            <el-col :span="5" :offset="12">
                <el-button @click="last()" icon="el-icon-caret-left">上一步</el-button>
            </el-col>
        </el-row>
  <el-row>
      <el-col :span="5">
        <a style="color: #606266" href="#">首页</a>
        <a style="color: #dcdfe6" href="#">/ 资产管理 </a>
        <a style="color: #dcdfe6" href="#">/ 楼栋信息</a></el-col
      >
    </el-row>
    </div>
    <hr />
    <el-row style="background-color: white">
        <el-col :span="3"><a style="color: #606266;font-family:'黑体';font-size:25px;font-weight:bold">业主信息：</a></el-col> 
    </el-row>
  <div style="background-color: white;font-size:15px;">
    <el-row>
      <el-col  :span="4">
        业主编号：{{this.$store.state.Info.userId}}
      </el-col>
      <el-col :span="10">
        业主姓名：{{this.$store.state.Info.username}}
      </el-col>
      <el-col :span="5">
        性别：{{this.$store.state.Info.sex}}
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="6">
        身份证号码：{{this.$store.state.Info.identitycard}}
      </el-col>
       <el-col  :span="7">
        电话号码：{{this.$store.state.Info.tel}}
      </el-col>
    </el-row>
  </div>
  <el-row>
    <el-col :span="2" :offset="20">
      <el-button size="small" @click="add()">确定</el-button>
    </el-col>
  </el-row>
  </div>
</template>

<script>
export default {
methods:{
  last(){
    this.$router.push("/yezhu/fangwu");
  },
  add(){
    let url="yezhu/yezhu_house";
    let param={houseId:this.$store.state.fangwuid,userId:this.$store.state.Info.userId};
    this.$axios.post(url,param).then(resp=>{this.$router.push("/yezhu/yezhu")});
  }
}
}
</script>

<style>

</style>